package com.banksoft.cps.service;

import com.banksoft.cps.bean.BuyCompany;
import com.banksoft.cps.bean.Company;
import com.banksoft.cps.bean.TransportCompany;
import com.banksoft.cps.bean.common.ServiceException;
import com.banksoft.cps.bean.query.BuyCompanyQuery;
import com.banksoft.cps.bean.query.CompanyQuery;
import com.banksoft.cps.bean.warpper.BuyCompanyWarpper;

import java.util.List;

/**
 * Created by rongzhao.zhu on 2018/1/10.
 */
public interface BuyCompanyService extends UserService {

    List<BuyCompany> list(BuyCompanyQuery query);

    List<BuyCompanyWarpper>  listWarpper(BuyCompanyQuery query);

    long count(BuyCompanyQuery query);

    void save(BuyCompany buyCompany);

    List<BuyCompany> listAll(BuyCompanyQuery query);

    BuyCompany findById(String id);

    BuyCompanyWarpper findWarpperById(String id);

    BuyCompany login(String account, String password)throws ServiceException;

    void logout(String token);


    void delete(String[] ids);

}
